﻿using System;
using System.Collections.Generic;
using MC.RideEvent.Mvc.Models.Entity;
using MC.RideEvent.Mvc.Models.ViewModel;

namespace MC.RideEvent.Mvc.Models.Repository
{
    public interface IWayRepository
    {
        List<WayViewModel> GetWays();
        List<WayViewModel> GetLastWays();
        WayViewModel GetWayById(int wayId);
        List<WayViewModel> GetWaysByDriverId(int driverId);
        List<WayViewModel> GetWaysByPassagerId(int passagerId);
        Way GetWay(int id);
        List<WayViewModel> GetLastWaysByEventId(int eventId);
        List<WayViewModel> GetWaysByEventId(int eventId);
        
        //decommenter et completer les methodes suivantes
        bool SaveWay(WayViewModel way, int userId, bool isUpdate);
        bool BecomePassager(int wayId, int memberId);
        //bool AffectPassagers(int wayId, List<int passagerId>);
        //bool CancelPassager(int wayId, int passagerId);
    }
}
